<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>通过按钮切换图片</title>
		<script>
			function changeImg1() {
				document.getElementById('img').src = "../3.jpeg"
			}
			function changeImg2() {
				document.getElementById('img').src = "../20240913/1.jpg"
			}
		</script>
	</head>
	<body>
		<button onclick="changeImg1()">按钮1</button>
		<button onclick="changeImg2()">按钮2</button>
		<div>
			<img id="img" src="../20240913/1.jpg"/>
		</div>
	</body>
</html>